package com.mycharx.springboothibernate.dao;

import com.mycharx.springboothibernate.entity.SsoUser;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

/**
 * The interface Sso user dao.
 *
 * @author 张卜亢
 * @date 2020.03.27 23:02:49
 */
public interface SsoUserDao {
    /**
     * Find all sso user.
     *
     * @return the sso user
     */
    List<SsoUser> findAll();

    /**
     * Find all page page.
     *
     * @param pageable the pageable
     * @return the page
     */
    Page<SsoUser> findAllPage(Pageable pageable);

    /**
     * Save or update sso user.
     *
     * @param ssoUser the sso user
     * @return the sso user
     */
    SsoUser saveOrUpdate(SsoUser ssoUser);
}
